package indi.kider.server.woniubus.service.related;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pers.vankid.common.model.base.CommonResponse;

/**
 */
@FeignClient(value = "balance-bill")
public interface BillService {

    /**
     * 创建钱包
     * http://localhost:9002/balance-bill/produce/regitWallet/{tenantId}
     * @return
     */
    @GetMapping(value = "/produce/regitWallet/{tenantId}")
    CommonResponse regitWallet(@PathVariable(value = "tenantId") Long tenantId);

    /**
     * 退房钱包扣款
     * @param rentId
     * http://localhost:9002/balance-bill/produce/deductionBill/{rentId}
     * @return
     */
    @GetMapping(value = "/produce/deductionBill/{rentId}")
    CommonResponse deductionBill(@PathVariable(value = "rentId") Long rentId);


}
